<?php 
if($next && $leaderName){
?>
<div >
 <table>
 <tr><td>设置</td><td id="user_id" attr="<?php echo $user_id?>"><?php echo $leaderName?></td><td>的虚线主管</td></tr>
 <tr><td><input id="set_virtual_leader" type="button" value="确定"/></td></tr>
 </table>
</div>
<?php
}
?>
<div class="strt-wrap" id="strtWrap">
<div class="strt-block" >
<div class="strt-part" style="position: relative;">
    <span class="strt-name"><input type="checkbox" name="pick" id="SHA001"/> 梁伟平-SHA001</span><div class="line-v"><span></span></div>
     <div class="strt-block">
        <?php if($underlings){
        $size=count($underlings);
        $first=$size-1;
        ?>
     <div class="strt-part" style="position: relative;">
          <span class="line-h line-h-r"></span>
          <div class="line-v"><span></span></div>
          <span class="strt-name"  id="<?php echo $underlings[$first]['code']?>"><input type="checkbox" name="pick" id="<?php echo $underlings[$first]['code']?>"/> <?php echo $underlings[$first]['name'].'-'.$underlings[$first]['code']?></span>
     </div>
       <?php 
       $size_t=$first-1;
       for(;$size_t>0;$size_t--){?>
        <div class="strt-part" style="position: relative;">
            <span class="line-h line-h-c"></span>
            <div class="line-v"><span></span></div>
            <span class="strt-name"  id="<?php echo $underlings[$size_t]['code']?>"><input type="checkbox" name="pick" id="<?php echo $underlings[$size_t]['code']?>"/><?php echo $underlings[$size_t]['name'].'-'.$underlings[$size_t]['code']?></span>
        </div>
       <?php
      }
    }
    ?>
      <div class="strt-part" style="position: relative;">
            <span class="line-h line-h-l"></span>
            <div class="line-v"><span></span></div>
            <span class="strt-name" id="<?php echo $underlings[$size_t]['code']?>"><input type="checkbox" name="pick" id="<?php echo $underlings[$size_t]['code']?>"/><?php echo $underlings[$size_t]['name'].'-'.$underlings[$size_t]['code']?></span>
      </div>
    </div>
</div>
</div>
</div>
<?php $this->script_block_begin(); ?>
var structure_url='<?=Util_JxUrls::get_structure_url()?>';
<?php $this->script_block_end(); ?>